package com.lyk.coursearrange.service;

import com.lyk.coursearrange.entity.PaymentResult;

import java.util.List;

public interface PaymentResultService {
    /***
     * 信息处理
     * @param diagnosticFeePaid
     * @param totalAmount
     * @param installmentNumber
     * @return
     */
    PaymentResult processPayment(boolean diagnosticFeePaid, double totalAmount, int installmentNumber);

    /***
     * 对支付的增加操作
     * @param paymentResult
     */
    void addPaymentResult(PaymentResult paymentResult);
    /***
     * 根据id查询全款分期付款记录
     * @param id
     * @return
     */
    PaymentResult getPaymentResultById(Long id);
    /***
     * 查询所有全款分期付款
     * @return
     */
    List<PaymentResult> getAllPaymentResults();
    /***
     * 更新全款分期付款记录
     * @param paymentResult
     * @return
     */
    void updatePaymentResult(PaymentResult paymentResult);
    /***
     * 根据id删除全款分期记录
     * @param id
     * @return
     */
    void deletePaymentResultById(Long id);
}
